﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace QH_MSS_WPF_Core.UserControls
{
    /// <summary>
    /// CylinderListUserControl.xaml 的交互逻辑
    /// </summary>
    public partial class CylinderListUserControl : UserControl
    {
        public CylinderListUserControl()
        {
            InitializeComponent();
            CylinderItems.DataContext = this;
        }

        public static readonly DependencyProperty DataProperty = DependencyProperty.Register("QGList", typeof(IEnumerable<Object>), typeof(CylinderListUserControl));
        public IEnumerable<Object> QGList
        {
            get { return (IEnumerable<Object>)GetValue(DataProperty); }
            set { SetValue(DataProperty, value); }
        }

        public static readonly DependencyProperty DownCommandProperty =
          DependencyProperty.Register("DownCommand", typeof(ICommand), typeof(CylinderListUserControl), new PropertyMetadata(null));

        public ICommand DownCommand
        {
            get { return (ICommand)GetValue(DownCommandProperty); }
            set { SetValue(DownCommandProperty, value); }
        }

        public static readonly DependencyProperty UpCommandProperty =
          DependencyProperty.Register("UpCommand", typeof(ICommand), typeof(CylinderListUserControl), new PropertyMetadata(null));

        public ICommand UpCommand
        {
            get { return (ICommand)GetValue(UpCommandProperty); }
            set { SetValue(UpCommandProperty, value); }
        }
    }
}
